/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package analex;

/**
 *
 * @author Pedrom
 */
public class FsmCharacter {

    public FsmCharacter() {
    }
    
    public boolean isCharacter(String lexema){
        int ascii = (int) lexema.charAt(1);
        if(lexema.charAt(0) != '\'' || lexema.charAt(2) != '\''){
            return false;
        }
        if(lexema.length()>3 || ascii < 32 || ascii > 126 || ascii == 34 || ascii == 39){
            return false;
        } else {
            return true;
        }
    }
    
}
